#!/usr/bin/env node

const fs=require("fs"),
      src=process.argv[2],
      mod=process.argv[3],
      log=console.log;

if(process.argv.length != 4) {
    err('命令行参数不正确！');
      process.exit(1);

}
try{
fs.chmodSync(src,mod);
}catch(e){
  console.error(e.message);
  process.exit(2);
}
